<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('home');
});
Route::get('/home', 'HomeController@index');
Route::resource('api/user', 'UserController');
Route::post('api/user/batch','UserController@batchdestroy');
Route::resource('api/article', 'ArticleController');
Route::post('api/article/batch','ArticleController@batchdestroy');
Route::resource('api/comment', 'CommentController');
Route::post('api/comment/batch','CommentController@batchdestroy');
Route::get('api/countall','UserController@CountAll');
Auth::routes();